package com.lan.seriousphysics.screens.experimentMenus;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.lan.seriousphysics.SeriousPhysicsMain;
import com.lan.seriousphysics.screens.experimentos.CaidaLibre;
import com.lan.seriousphysics.screens.experimentos.VelocidadAngular;

public class MCUScreen extends AbstractInitExpScreen {

	public MCUScreen(SeriousPhysicsMain game, String tit) {
		super(game, tit);
		// TODO Auto-generated constructor stub
	}

    public void show()
    {
    		super.show();
    		
    	       TextButton botonCaida = new TextButton( res.getString("MOM_BOT"), getSkin() );
    	       table.add( botonCaida ).size(300, 55).spaceBottom(20);
    	       table.row();
    	       botonCaida.addListener(new InputListener() {
   	            public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {

   	            game.setScreen(new VelocidadAngular(game));
 
   	            	return true;
   	        }
   	        
   	});
    
    	       TextButton aux = new TextButton( res.getString("CAIDA_BOT"), getSkin() );
    	       table.add( aux ).size(300, 55).spaceBottom(20);
    	       table.row();
    	      aux.setVisible(false);
    	
    }
}

